#!/bin/bash
#========================================================================
# Author: YSLin
# Email: 
# File Name: select.sh
# Description: 
#   
# Edit History: 
#   2011-05-06    File created.
#========================================================================
PS3="Which fruits do you like? "
select fruit in apples oranges bananas "I'm full!"; do
    case "$fruit" in
    "I'm full!")
        break;;
    "") 
        echo "Pardon me?";;
    *)  
        echo "Okey, I will give you some $fruit.";;
    esac
done

echo "Good bye."

